package mywebapps.security.dao;

import java.util.List;

import org.springframework.security.annotation.Secured;

import mywebapps.security.model.Role;

public interface RoleDao
{
    public List<Role> getAllRoles();
    public Role getRole(int roleId);
    
    @Secured({"ROLE_ADMIN"})
    public void createRole(Role role);
    
    @Secured({"ROLE_ADMIN"})
    public void updateRole(Role role);
    
    @Secured({"ROLE_ADMIN"})
    public void deleteRole(Role role);
}
